using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using KolkataNETModel;

namespace KolkataNETController
{
    public class PhotoController : Controller
    {
        KolkataNETDBEntities db = null;
        public PhotoController()
        {
            db = new KolkataNETDBEntities();
        }
        //
        // GET: /Photo/

        public ActionResult Photo()
        {
            ViewData.Model = db.Photo.ToList<Photo>();
            return View();
        }
        protected override void Dispose(bool disposing)
        {
            db.Dispose();
            base.Dispose(disposing);
        }

    }
}
